<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<link href="css/index.css" rel="stylesheet" type="text/css" />

<style type="text/css">
            #bottom_out{
		width: 100%;
		height: 100px;
		background: #333;
		opacity: 0.9;
		filter: alpha(opacity=90);
		border-top: 2px solid #EC1A2E;
		position: fixed;
		bottom:-120px;
		z-index: 5;	
	}
        #bottom{
		width: 960px;
		height: 80px;
		margin: 0 auto;
		padding-top: 20px;
	}
        #bottom p{
		float: left;
		color: #fff;
		margin-right: 20px;
	}
	#bottom p .btn{
		display: block;
		height: 25px;
		width: 70px;
		border: 0px solid #000;
		color: #fff;
		background: #E95766;
		margin: 20px auto;
		cursor: pointer;
	} 
	#bottom p .btn:hover{
		background: #CB2E3E;
	}
	#bottom p textarea{
		width: 300px;
		height: 50px;
		border: 1px solid #D9D9D9;
		font-size: 14px;
		padding: 5px;
	}
	#bottom .one input{
		margin: 0 5px;
		color: #000;
	}
	#bottom .one .name{
		border: 1px solid #D9D9D9;
		height: 20px;
		width: 100px;
	}
	#bottom .close{
		width: 20px;
		height: 20px;
		background:  url(../images/close.png) 0 0 no-repeat;
		position: absolute;
		top:5px;
		right: 5px;
		cursor: pointer;
	}
            
            *{
	margin: 0px;
	padding: 0px;
                }
               body{
                    background: #E2E6E9;
                    font-size: 18px;
                    font-family: 微软雅黑;
                    color: #333;
}
            .tb{
                margin: 100px auto;
                border: 2px solid cornflowerblue;
            }
            .tb_1{
                background-color: #66ffff;
                text-align: center;
            }
            .tb_2 {
                text-align: center;
            }
            #top{
	height: 40px;
	width: 100%;
	background: #333;
	opacity: 0.5;
	filter: alpha(opacity=50);
	border-bottom: 2px solid #EC1A2E;
	position: fixed;
	top:0px;
	z-index: 6;
}

#top h1{
		color: #fff;
		font-size: 20px;
		text-align: center;
		line-height: 40px;
		font-weight: 400;
	}
        #right{
		width: 310px;
		height: 300px;
		background: #fff;
		border: 1px solid #D5D9DC;
		border-radius: 5px;
		position: fixed;
		top:450px;
		right:100px;
		padding:20px;
	}
	#right h2{
		font-size: 14px;
		color: #999;
	}
	#right .one{
		padding-top: 20px;
		line-height: 20px;
	}
	#right .one input{
		margin: 5px;
		color: #999;
	}
	#right .one .name{
		border: 1px solid #D9D9D9;
		height: 20px;
		width: 100px;
	}
	#right textarea{
		width: 300px;
		height: 90px;
		border: 1px solid #D9D9D9;
		margin-top: 10px;
		font-size: 14px;
		padding: 5px;
	}
	#right .tow{
		height: 50px;
		line-height: 50px;
		margin-top: 10px;
	}
	#right .tow input{
		line-height: 50px;
		margin:5px;
	}
	#right .thr{
		width: 310px;
		height: 50px;
		line-height: 50px;
	}
	#right .thr .btn{
		display: block;
		height: 25px;
		width: 70px;
		border: 0px solid #000;
		color: #fff;
		background: #E95766;
		margin: 20px auto;
		cursor: pointer;
	} 
	#right .thr .btn:hover{
		background: #CB2E3E;
	}
	#right .close{
		width: 20px;
		height: 20px;
		background:  url(../images/close.png) 0 0 no-repeat;
		position: absolute;
		top:5px;
		left: 325px;
		cursor: pointer;
	}
        #ying {
		width: 100%;
		height: 100%;
		position: fixed;
		top:-1000px;
		left:0px;
		padding-top: 150px;
		background: #000;
		opacity: 0.8;
		filter: alpha(opacity=80);
		z-index: 5;
	}
	#edit_out {
		width: 100%;
		position: fixed;
		top:-1000px;
		left:0px;
		padding-top: 150px;
		z-index: 6;
	}
	#edit_out #edit{
		margin: 0 auto;
		width: 320px;
		height: 300px;
		background: #fff;
		border: 1px solid #D5D9DC;
		border-radius: 5px;
		padding:20px;
		position: relative;
		top:0px;
	}
	#edit_out #edit h2{
		font-size: 14px;
		color: red;
	}
	#edit_out #edit .one{
		padding-top: 20px;
		line-height: 20px;
	}
	#edit_out #edit .one input{
		margin: 5px;
		color: #999;
	}
	#edit_out #edit .one .name{
		border: 1px solid #D9D9D9;
		height: 20px;
		width: 100px;
	}
	#edit_out #edit textarea{
		width: 300px;
		height: 90px;
		border: 1px solid #D9D9D9;
		margin-top: 10px;
		font-size: 14px;
		padding: 5px;
	}
	#edit_out #edit .tow{
		height: 50px;
		line-height: 50px;
		margin-top: 10px;
	}
	#edit_out #edit .tow input{
		line-height: 50px;
		margin:5px;
	}
	#edit_out #edit .thr{
		width: 310px;
		height: 50px;
		line-height: 50px;
	}
	#edit_out #edit .thr .btn{
		display: block;
		height: 25px;
		width: 70px;
		border: 0px solid #000;
		color: #fff;
		background: #E95766;
		margin: 20px auto;
		cursor: pointer;
	} 
	#edit_out #edit .thr .btn:hover{
		background: #CB2E3E;
	}
	#edit_out #edit .close1{
		width: 20px;
		height: 20px;
		background:  url(../images/close.png) 0 0 no-repeat;
		position: absolute;
		top:5px;
		left: 325px;
		cursor: pointer;
	}
        ul{
		list-style: none;
}
        </style>

<html>
        <div id="top">
		<h1>员工入职信息数据库</h1>
</div>
    <head>
        <meta charset="UTF-8">
        <title>员工信息注册</title>
        <style type="text/css">
           
        </style>
    </head>
    <body>
        <div class="box">
<div id="box">
    <table class="tb" width="820" border='1'cellspacing="0" cellpadding="10" >
        <tbody>
              <tr class="tb_1">
              <td width="40">ID</td>
              <td width="100">姓名</td>
              <td width="100">所属部门</td>
              <td width="80">头像</td>
              <td width="200">出生日期</td>
              <td width="200">入职时间</td>
              <td width="100">相关操作</td>
            </tr>
            <?php
              foreach($rows as $row ) 
              {
            ?>
            <tr class="tb_2">
              <td><?php echo $row["e_id"]  ?></td>
              <td><?php echo $row["e_name"]  ?></td>
              <td><?php echo $row["e_dept"]  ?></td>
              <td><img src= '<?php echo $row["e_img"]  ?>' alt="" /></td>
              <td><?php echo $row["date_of_birth"]  ?></td>
              <td><?php echo $row["date_of_entry"]  ?></td>
              <td>
                  <a href="Update.php?id=<?php echo $row["e_id"]  ?>">编辑</a> 
                  <a href="Del.php?id=<?php echo $row["e_id"]  ?>">删除</a>
              </td>
            </tr>
            <?php  
                }
            ?>
        </tbody>
    </table>
</div>
        <div class="submit">
            <form action="Add.php" method="post">
                <h2>员工信息注册</h2>
                姓名：<input id="name" type="text" name="e_name" value="" /><br/><br/>
                所属部门：
                <select name="bumen">
                    <option value="人事部">人事部</option>
                    <option value="营销部">营销部</option>
                    <option value="市场部">市场部</option>
                    <option value="财务部">财务部</option>
                </select><br/><br/>
                
                出生日期：<input class="date" type="datetime-local" name="date_of_birth" /><br/><br/>
                入职日期：<input class="date" type="datetime-local" name="date_of_entry" />
                <p class="tow">
                    <input type="radio" name="e_img" value="imagse/1.jpg" checked="checked" /><img src=" imagse/1.jpg" alt="" />
                    <input type="radio" name="e_img" value="imagse/2.jpg" /><img src=" imagse/2.jpg" alt="" />
                    <input type="radio" name="e_img" value="imagse/3.jpg" /><img src=" imagse/3.jpg" alt="" />
                    <input type="radio" name="e_img" value="imagse/4.jpg" /><img src=" imagse/4.jpg" alt="" />
                </p>
                <p id="btn"><input class="btn" type="submit" value="提交" /></p>
            </form>
        </div>
</div>
    </body>
</html>